PRG 1.0 TXT

/*
*/

//-----------------------------------------------------------------------------
// [CONFIG]

include "..\program_include.ocf"

object Program
{
	type		= e_program.DEPTH;
	layer_bits	= e_render_layer_bits.DEPTH;
	
	uniforms	= array /*string*/ {
		"transform", "unTransform."
	}
}


//-----------------------------------------------------------------------------
// [VERTEX]

#version 330 core
#pragma optimize(on)

#define ATTR_POSITION	0

layout(location = ATTR_POSITION) in vec3  inPosition;

uniform struct TTransform {
	mat4	MVP;
} unTransform;


void main()
{
	gl_Position = unTransform.MVP * vec4(inPosition, 1.0);
}


//-----------------------------------------------------------------------------
// [FRAGMENT]

#version 330 core
#pragma optimize(on)

void main()
{
}

// [END]
